﻿$(document).ready(function () {
    XPhoto.Workbench.init($('#ct'));
    $('#loadBtn').click(function () {
        XPhoto.Workbench.load($('#imgSrc')[0].value);
    });

    $('#zoomInBtn').click(function () {
        XPhoto.Workbench.zoomIn();
    });

    $('#zoomOutBtn').click(function () {
        XPhoto.Workbench.zoomOut();
    });

    $('#resetBtn').click(function () {
        XPhoto.Workbench.reset();
    });

    $('#zoomRange').bind('change', function () {
        console.log(this.value)
        XPhoto.Workbench.zoom(this.value / 100);
    });
});